Skip to content

feat: Implement global pause switch for security (Issue #12)#89

Merged
JerryIdoko merged 1 commit intoVesting-Vault:mainfrom
lifewithbigdamz:main
Feb 25, 2026
Merged

feat: Implement global pause switch for security (Issue #12)#89
JerryIdoko merged 1 commit intoVesting-Vault:mainfrom
lifewithbigdamz:main

Conversation

@lifewithbigdamz
Copy link
Copy Markdown
Contributor

@lifewithbigdamz lifewithbigdamz commented Feb 25, 2026

Closes #12


  • Add IsPaused to DataKey enum for instance storage
  • Initialize pause state to false in initialize() function
  • Implement toggle_pause() function (admin-only)
  • Add pause checks to claim_tokens() and claim_as_delegate() functions
  • Add is_paused() getter function
  • Add comprehensive test suite for pause functionality
  • Emit PauseToggled events for transparency

This provides the 'Big Red Button' emergency pause functionality to halt all withdrawals in case of discovered vulnerabilities.

)

- Add IsPaused to DataKey enum for instance storage
- Initialize pause state to false in initialize() function
- Implement toggle_pause() function (admin-only)
- Add pause checks to claim_tokens() and claim_as_delegate() functions
- Add is_paused() getter function
- Add comprehensive test suite for pause functionality
- Emit PauseToggled events for transparency

This provides the 'Big Red Button' emergency pause functionality
to halt all withdrawals in case of discovered vulnerabilities.
@JerryIdoko JerryIdoko merged commit 682fb11 into Vesting-Vault:main Feb 25, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

#12 Issue 12: [Security] Global Pause Switch

2 participants